﻿namespace BlamanticUI.Components;

/// <summary>
/// Represents a new row in <see cref="Grid"/> component.
/// </summary>
[CssClass("row")]
public class GridRow : BlazorChildComponentBase<Grid>, IHasEqualWidth, IHasSpan, IHasCentered,IHasChildContent
{
    /// <summary>
    /// Initializes a new instance of the <see cref="GridRow"/> class.
    /// </summary>
    public GridRow()
    {
    }


    /// <summary>
    /// A segment of UI content to render.
    /// </summary>
    [Parameter] public RenderFragment? ChildContent { get; set; }
    /// <summary>
    /// Gets or sets a value indicating whether each <see cref="GridColumn"/> component has equal width.
    /// </summary>
    [Parameter] public bool EqualWidth { get; set; }
    /// <summary>
    /// Gets or sets the span of column.
    /// </summary>
    [Parameter] [CssClass(" column", Order = 1, Suffix = true)] public SpanSize? Span { get; set; }

    /// <summary>
    /// Gets or sets a value indicating whether alignment is centered in row.
    /// </summary>
    [Parameter] public bool Centered { get; set; }
    /// <summary>
    /// Gets or sets a value indicating whether a row stretch its contents to take up the entire column height
    /// </summary>
    [Parameter] [CssClass("stretched")] public bool Stretched { get; set; }
}
